<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>iconfont应用</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <link rel="stylesheet" href="./iconfont/iconfont.css" />
    <style>
      body {
        background-color: #ddd;
      }

      .sidebar {
        width: 85px;
        /* height: 500px; */
        /* background-color: #fff; */
        position: fixed;
        right: 20px;
        bottom: 100px;
      }

      /* .sidebar ul {
      } */

      .sidebar ul li {
        width: 85px;
        height: 86px;
        background-color: #fff;
        position: relative;
        border-bottom: 1px solid #ddd;
      }

      .sidebar ul li:last-child {
        margin-top: 22px;
      }

      .sidebar ul li span {
        width: 85px;
        height: 50px;
        /* background-color: blue; */
        display: block;
        font-size: 28px;
        text-align: center;
        line-height: 50px;
        color: #666;
      }

      .sidebar ul li p {
        font-family: Microsoft YaHei;
        font-weight: 400;
        font-size: 14px;
        color: #666;
        text-align: center;
      }

      a {
        text-decoration: none;
      }

      .sidebar ul li:hover span,
      .sidebar ul li:hover p {
        color: #ff80bd;
      }

      .sidebar ul li .wechat {
        width: 100px;
        height: 100px;
        position: absolute;
        background-color: #fff;
        top: 0;
        left: -130px;
        padding: 15px;
        display: none;
      }

      .sidebar ul li:hover .wechat {
        display: block;
      }
    </style>
  </head>
  <body>
    <div class="sidebar">
      <ul>
        <li>
          <span class="iconfont icon-shouji"></span>
          <p>手机APP</p>
          <div class="wechat">
            <img src="./images/wx.png" alt="wechat" width="100px" />
          </div>
        </li>
        <li>
          <a href="#">
            <span class="iconfont icon-touxiang"></span>
            <p>个人中心</p>
          </a>
        </li>
        <li>
          <a href="#">
            <span class="iconfont icon-gongju"></span>
            <p>售后服务</p>
          </a>
        </li>
        <li>
          <a href="#">
            <span class="iconfont icon-kefu"></span>
            <p>人工客服</p>
          </a>
        </li>
        <li>
          <a href="#">
            <span class="iconfont icon-gouwuche"></span>
            <p>购物车</p>
          </a>
        </li>
        <li>
          <a href="#">
            <span class="iconfont icon-dingbu"></span>
            <p>回到顶部</p>
          </a>
        </li>
      </ul>
    </div>
  </body>
</html>
